package com.sss.hloster0305;

import java.util.Date;

public class Student {
//属性
//成员变量
	private String stuName;
	private String stuSex;
	private String stuSorce;
	//行为
	/**
	 * 学习行为
	 */
	public void doStuding () {
		System.out.println(this.stuName+"  is  studing ......");
	}
	//学习行为，重载方法
	public void doStuding(String where ,Date time) {
		System.out.println(this.stuName+"  is studing  at   "+where+"  at  "+time.toLocaleString());
	}
	public Student(String stuName, String stuSex, String stuSorce) {
		super();
		this.stuName = stuName;
		this.stuSex = stuSex;
		this.stuSorce = stuSorce;
	}
	public Student() {
		super();
	}
	public String getStuName() {
		return stuName;
	}
	public void setStuName(String stuName) {
		this.stuName = stuName;
	}
	public String getStuSex() {
		return stuSex;
	}
	public void setStuSex(String stuSex) {
		this.stuSex = stuSex;
	}
	public String getStuSorce() {
		return stuSorce;
	}
	public void setStuSorce(String stuSorce) {
		this.stuSorce = stuSorce;
	}
	
}
